-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sidebars): Add XSLT and XPATH sidebar navigation #27328
Conversation
@@ -3,6 +3,8 @@ title: Using the Mozilla JavaScript interface to XSL Transformations | |||
slug: Web/XSLT/Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations | |||
--- | |||
|
|||
{{XsltSidebar}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has the sidebar but is not "in" the sidebar. I see as a non-blocking error: https://pr27328.content.dev.mdn.mozit.cloud/en-US/docs/Web/XSLT/Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true, there's a few in this directory that are not included, I'm guessing this was a space-saving decision on the older breadcrumb-style.
@@ -3,6 +3,8 @@ title: JavaScript/XSLT Bindings | |||
slug: Web/XSLT/XSLT_JS_interface_in_Gecko/JavaScript_XSLT_Bindings | |||
--- | |||
|
|||
{{XsltSidebar}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has sidebar but is not in the sidebar https://pr27328.content.dev.mdn.mozit.cloud/en-US/docs/Web/XSLT/XSLT_JS_interface_in_Gecko/JavaScript_XSLT_Bindings
<section id="Quick_links"> | ||
{{ListSubpagesForSidebar("/en-US/docs/Web/XPath")}} | ||
</section> | ||
{{XsltSidebar}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be improved in the sidebar, yes. I'm not sure why it's not highlighted, will need investigation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would guess because it's a top-level list item which I don't think gets highlighted by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving. This is all good.
Note however that an awful lot of items have the sidebar but are not in the sidebar. I think every item should be in the sidebar. Is there an action to add them?
Feel free to merge. Just leaving this open for this discussion.
Thanks a lot, Hamish! Actually I'm not sure we should merge it just yet because the newer sidebar has a regression for the reason you mentioned:
We can include the missing docs here: This PR is basically "pages without a sidebar nav now have one", but we should include the guide docs to make sure there's no orphans. I'll track this in a Yari issue and we can wait for the improvements to land first. |
That is your call. I think I'd merge it as "better than what we have now". |
Thanks Hamish, fair enough, I will merge shortly. Getting coverage of pages without sidebars was the goal here and improving the sidebar itself should be done soon in that case. It may even cover XPATH, XSLT, EXSLT & XML, but it will need testing & feedback to make sure it's usable. |
Adding a follow-up task to improve the sidebar here: mdn/yari#9099 |
This PR adds the
{{XsltSidebar}}
to pages underfiles/en-us/web/xpath
andfiles/en-us/web/xslt/
which were mostly missing sidebar navigation.Screenshots
Before
After
Related issues and pull requests: